package appapi.entity.auth;

import appapi.common.BaseEntity;
import appapi.common.UpdateGroup;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 用户角色
 * 
 * @author lc
 * @version 1.0
 * @date 2023-05-17 10:08:27
 */
@ApiModel
@Data
@NoArgsConstructor
@TableName("staffrole")
public class StaffroleEntity extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "记录ID")
	@NotNull(message = "记录ID不能为空", groups = {UpdateGroup.class})
	@TableId(type = IdType.AUTO)
	private Long staffRoleId;

	@ApiModelProperty(value = "用户ID")
	private Long staffId;

	@ApiModelProperty(value = "角色ID")
	private Long roleId;

	@ApiModelProperty(value = "备注")
	private String staffRoleNote;

}
